package liangtWorkSpace.factory.BaseFactory;

/**
 * @ClassName FactoryMain
 * @Description : 功能说明
 * @Author : LiangT
 * @Date : 2020/4/13 18:31
 */

/**
 * 工厂模式
 */
public class FactoryMain {
    public static void main(String[] args) {
//        阶段yi
        //        Car car = new Car();
//        car.go();
//        Plane plane = new Plane();
//        plane.go();
//        阶段2
//        MoveAble moveAble = new Plane();
//        moveAble.go();
//        阶段3
//        MoveAble moveAble = new SimpleVeFactory().createCar();
//        moveAble.go();
//        阶段4
//        MoveAble moveAble = new CarFactory().createCar();
//        moveAble.go();
    }
}
